<template>
  <div>
    <table border="1" cellspacing="0">
      <tr>
        <td>文章</td>
        <td>状态</td>
      </tr>
      <tr v-for="i in wzlist" :key="i">
        <td>{{i.title}}</td>
        <td v-if="i.status==1">正在审核</td>
        <td v-if="i.status==2">审核成功</td>
        <td v-if="i.status==3">审核失败</td>
      </tr>
    </table>
  </div>
</template>

<script>
import maxios from "@/http/axios";
export default {
  name: "mywz",
  data() {
    return {
      wzlist: [],
      userid:localStorage.getItem('userid')
    }
  },
  methods:{
    get_wzlist(){
      maxios('/book/get_wz?userid='+this.userid,'get').then(res=>{
        this.wzlist = res.list
      })
    },
  },
  mounted() {
    this.get_wzlist()
  }
}
</script>

<style scoped>

</style>